.class public Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView;
.super Landroid/widget/ExpandableListView;
.source "PullToZoomExpandableListView.java"

# interfaces
.implements Landroid/widget/AbsListView$OnScrollListener;


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView$ScalingRunnable;
    }
.end annotation


# static fields
.field private static final INVALID_VALUE:I = -0x1

.field private static final TAG:Ljava/lang/String; = "PullToZoomListView"

.field private static final sInterpolator:Landroid/view/animation/Interpolator;


# instance fields
.field mActivePointerId:I

.field private mHeaderContainer:Landroid/widget/FrameLayout;

.field private mHeaderHeight:I

.field private mHeaderImage:Landroid/widget/ImageView;

.field mLastMotionY:F

.field mLastScale:F

.field mMaxScale:F

.field private mOnScrollListener:Landroid/widget/AbsListView$OnScrollListener;

.field private mPlayBtn:Landroid/widget/ImageButton;

.field private mScalingRunnable:Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView$ScalingRunnable;

.field private mScreenHeight:I

.field private mScrollable:Z

.field private mShadow:Landroid/widget/ImageView;

.field private mShowHeaderImage:Z

.field private mZoomable:Z


# direct methods
.method static constructor <clinit>()V
    .registers 1

    .prologue
    .line 39
    new-instance v0, Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView$1;

    invoke-direct {v0}, Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView$1;-><init>()V

    sput-object v0, Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView;->sInterpolator:Landroid/view/animation/Interpolator;

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;)V
    .registers 4
    .param p1, "context"    # Landroid/content/Context;

    .prologue
    const/4 v0, 0x1

    const/high16 v1, -0x40800000

    .line 49
    invoke-direct {p0, p1}, Landroid/widget/ExpandableListView;-><init>(Landroid/content/Context;)V

    .line 35
    iput-boolean v0, p0, Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView;->mZoomable:Z

    .line 36
    iput-boolean v0, p0, Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView;->mScrollable:Z

    .line 37
    iput-boolean v0, p0, Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView;->mShowHeaderImage:Z

    .line 177
    const/4 v0, -0x1

    iput v0, p0, Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView;->mActivePointerId:I

    .line 178
    iput v1, p0, Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView;->mLastMotionY:F

    .line 179
    iput v1, p0, Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView;->mMaxScale:F

    .line 180
    iput v1, p0, Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView;->mLastScale:F

    .line 50
    invoke-direct {p0, p1}, Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView;->init(Landroid/content/Context;)V

    .line 51
    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
    .registers 5
    .param p1, "context"    # Landroid/content/Context;
    .param p2, "attrs"    # Landroid/util/AttributeSet;

    .prologue
    const/4 v0, 0x1

    const/high16 v1, -0x40800000

    .line 54
    invoke-direct {p0, p1, p2}, Landroid/widget/ExpandableListView;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V

    .line 35
    iput-boolean v0, p0, Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView;->mZoomable:Z

    .line 36
    iput-boolean v0, p0, Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView;->mScrollable:Z

    .line 37
    iput-boolean v0, p0, Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView;->mShowHeaderImage:Z

    .line 177
    const/4 v0, -0x1

    iput v0, p0, Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView;->mActivePointerId:I

    .line 178
    iput v1, p0, Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView;->mLastMotionY:F

    .line 179
    iput v1, p0, Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView;->mMaxScale:F

    .line 180
    iput v1, p0, Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView;->mLastScale:F

    .line 55
    invoke-direct {p0, p1}, Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView;->init(Landroid/content/Context;)V

    .line 56
    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
    .registers 6
    .param p1, "context"    # Landroid/content/Context;
    .param p2, "attrs"    # Landroid/util/AttributeSet;
    .param p3, "defStyle"    # I

    .prologue
    const/4 v0, 0x1

    const/high16 v1, -0x40800000

    .line 59
    invoke-direct {p0, p1, p2, p3}, Landroid/widget/ExpandableListView;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V

    .line 35
    iput-boolean v0, p0, Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView;->mZoomable:Z

    .line 36
    iput-boolean v0, p0, Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView;->mScrollable:Z

    .line 37
    iput-boolean v0, p0, Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView;->mShowHeaderImage:Z

    .line 177
    const/4 v0, -0x1

    iput v0, p0, Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView;->mActivePointerId:I

    .line 178
    iput v1, p0, Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView;->mLastMotionY:F

    .line 179
    iput v1, p0, Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView;->mMaxScale:F

    .line 180
    iput v1, p0, Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView;->mLastScale:F

    .line 60
    invoke-direct {p0, p1}, Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView;->init(Landroid/content/Context;)V

    .line 61
    return-void
.end method

.method static synthetic access$000(Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView;)Landroid/widget/FrameLayout;
    .registers 2
    .param p0, "x0"    # Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView;

    .prologue
    .line 23
    iget-object v0, p0, Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView;->mHeaderContainer:Landroid/widget/FrameLayout;

    return-object v0
.end method

.method static synthetic access$100(Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView;)I
    .registers 2
    .param p0, "x0"    # Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView;

    .prologue
    .line 23
    iget v0, p0, Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView;->mHeaderHeight:I

    return v0
.end method

.method static synthetic access$200()Landroid/view/animation/Interpolator;
    .registers 1

    .prologue
    .line 23
    sget-object v0, Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView;->sInterpolator:Landroid/view/animation/Interpolator;

    return-object v0
.end method

.method private endScaling()V
    .registers 5

    .prologue
    .line 316
    iget-object v0, p0, Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView;->mHeaderContainer:Landroid/widget/FrameLayout;

    invoke-virtual {v0}, Landroid/widget/FrameLayout;->getBottom()I

    move-result v0

    iget v1, p0, Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView;->mHeaderHeight:I

    if-lt v0, v1, :cond_11

    .line 317
    iget-object v0, p0, Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView;->mScalingRunnable:Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView$ScalingRunnable;

    const-wide/16 v2, 0xc8

    invoke-virtual {v0, v2, v3}, Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView$ScalingRunnable;->startAnimation(J)V

    .line 319
    :cond_11
    return-void
.end method

.method private init(Landroid/content/Context;)V
    .registers 9
    .param p1, "context"    # Landroid/content/Context;

    .prologue
    const/4 v6, -0x2

    .line 64
    new-instance v1, Landroid/util/DisplayMetrics;

    invoke-direct {v1}, Landroid/util/DisplayMetrics;-><init>()V

    .local v1, "metrics":Landroid/util/DisplayMetrics;
    move-object v4, p1

    .line 65
    check-cast v4, Landroid/app/Activity;

    invoke-virtual {v4}, Landroid/app/Activity;->getWindowManager()Landroid/view/WindowManager;

    move-result-object v4

    invoke-interface {v4}, Landroid/view/WindowManager;->getDefaultDisplay()Landroid/view/Display;

    move-result-object v4

    invoke-virtual {v4, v1}, Landroid/view/Display;->getMetrics(Landroid/util/DisplayMetrics;)V

    .line 66
    iget v4, v1, Landroid/util/DisplayMetrics;->heightPixels:I

    iput v4, p0, Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView;->mScreenHeight:I

    .line 68
    new-instance v4, Landroid/widget/FrameLayout;

    invoke-direct {v4, p1}, Landroid/widget/FrameLayout;-><init>(Landroid/content/Context;)V

    iput-object v4, p0, Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView;->mHeaderContainer:Landroid/widget/FrameLayout;

    .line 70
    new-instance v4, Landroid/widget/ImageView;

    invoke-direct {v4, p1}, Landroid/widget/ImageView;-><init>(Landroid/content/Context;)V

    iput-object v4, p0, Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView;->mHeaderImage:Landroid/widget/ImageView;

    .line 71
    iget v3, v1, Landroid/util/DisplayMetrics;->widthPixels:I

    .line 72
    .local v3, "width":I
    int-to-float v4, v3

    const/high16 v5, 0x41800000

    div-float/2addr v4, v5

    const/high16 v5, 0x41100000

    mul-float/2addr v4, v5

    float-to-int v0, v4

    .line 73
    .local v0, "height":I
    invoke-virtual {p0, v3, v0}, Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView;->setHeaderViewSize(II)V

    .line 75
    new-instance v4, Landroid/widget/ImageView;

    invoke-direct {v4, p1}, Landroid/widget/ImageView;-><init>(Landroid/content/Context;)V

    iput-object v4, p0, Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView;->mShadow:Landroid/widget/ImageView;

    .line 76
    new-instance v2, Landroid/widget/FrameLayout$LayoutParams;

    const/4 v4, -0x1

    invoke-direct {v2, v4, v6}, Landroid/widget/FrameLayout$LayoutParams;-><init>(II)V

    .line 77
    .local v2, "params":Landroid/widget/FrameLayout$LayoutParams;
    const/16 v4, 0x50

    iput v4, v2, Landroid/widget/FrameLayout$LayoutParams;->gravity:I

    .line 78
    iget-object v4, p0, Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView;->mShadow:Landroid/widget/ImageView;

    invoke-virtual {v4, v2}, Landroid/widget/ImageView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    .line 80
    new-instance v4, Landroid/widget/ImageButton;

    invoke-direct {v4, p1}, Landroid/widget/ImageButton;-><init>(Landroid/content/Context;)V

    iput-object v4, p0, Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView;->mPlayBtn:Landroid/widget/ImageButton;

    .line 81
    new-instance v2, Landroid/widget/FrameLayout$LayoutParams;

    .end local v2    # "params":Landroid/widget/FrameLayout$LayoutParams;
    invoke-direct {v2, v6, v6}, Landroid/widget/FrameLayout$LayoutParams;-><init>(II)V

    .line 82
    .restart local v2    # "params":Landroid/widget/FrameLayout$LayoutParams;
    const/16 v4, 0x11

    iput v4, v2, Landroid/widget/FrameLayout$LayoutParams;->gravity:I

    .line 83
    iget-object v4, p0, Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView;->mPlayBtn:Landroid/widget/ImageButton;

    const/16 v5, 0x8

    invoke-virtual {v4, v5}, Landroid/widget/ImageButton;->setVisibility(I)V

    .line 84
    iget-object v4, p0, Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView;->mPlayBtn:Landroid/widget/ImageButton;

    invoke-virtual {v4, v2}, Landroid/widget/ImageButton;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    .line 86
    iget-object v4, p0, Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView;->mHeaderContainer:Landroid/widget/FrameLayout;

    iget-object v5, p0, Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView;->mHeaderImage:Landroid/widget/ImageView;

    invoke-virtual {v4, v5}, Landroid/widget/FrameLayout;->addView(Landroid/view/View;)V

    .line 87
    iget-object v4, p0, Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView;->mHeaderContainer:Landroid/widget/FrameLayout;

    iget-object v5, p0, Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView;->mShadow:Landroid/widget/ImageView;

    invoke-virtual {v4, v5}, Landroid/widget/FrameLayout;->addView(Landroid/view/View;)V

    .line 88
    iget-object v4, p0, Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView;->mHeaderContainer:Landroid/widget/FrameLayout;

    iget-object v5, p0, Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView;->mPlayBtn:Landroid/widget/ImageButton;

    invoke-virtual {v4, v5}, Landroid/widget/FrameLayout;->addView(Landroid/view/View;)V

    .line 89
    iget-object v4, p0, Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView;->mHeaderContainer:Landroid/widget/FrameLayout;

    invoke-virtual {p0, v4}, Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView;->addHeaderView(Landroid/view/View;)V

    .line 91
    new-instance v4, Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView$ScalingRunnable;

    invoke-direct {v4, p0}, Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView$ScalingRunnable;-><init>(Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView;)V

    iput-object v4, p0, Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView;->mScalingRunnable:Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView$ScalingRunnable;

    .line 93
    const/4 v4, 0x2

    invoke-virtual {p0, v4}, Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView;->setOverScrollMode(I)V

    .line 94
    invoke-super {p0, p0}, Landroid/widget/ExpandableListView;->setOnScrollListener(Landroid/widget/AbsListView$OnScrollListener;)V

    .line 95
    return-void
.end method

.method private onSecondaryPointerUp(Landroid/view/MotionEvent;)V
    .registers 7
    .param p1, "ev"    # Landroid/view/MotionEvent;

    .prologue
    .line 306
    invoke-virtual {p1}, Landroid/view/MotionEvent;->getAction()I

    move-result v3

    const v4, 0xff00

    and-int/2addr v3, v4

    shr-int/lit8 v2, v3, 0x8

    .line 307
    .local v2, "pointerIndex":I
    invoke-virtual {p1, v2}, Landroid/view/MotionEvent;->getPointerId(I)I

    move-result v1

    .line 308
    .local v1, "pointerId":I
    iget v3, p0, Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView;->mActivePointerId:I

    if-ne v1, v3, :cond_21

    .line 309
    if-nez v2, :cond_22

    const/4 v0, 0x1

    .line 310
    .local v0, "newPointerIndex":I
    :goto_15
    invoke-virtual {p1, v0}, Landroid/view/MotionEvent;->getY(I)F

    move-result v3

    iput v3, p0, Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView;->mLastMotionY:F

    .line 311
    invoke-virtual {p1, v0}, Landroid/view/MotionEvent;->getPointerId(I)I

    move-result v3

    iput v3, p0, Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView;->mActivePointerId:I

    .line 313
    .end local v0    # "newPointerIndex":I
    :cond_21
    return-void

    .line 309
    :cond_22
    const/4 v0, 0x0

    goto :goto_15
.end method

.method private reset()V
    .registers 3

    .prologue
    const/high16 v1, -0x40800000

    .line 183
    const/4 v0, -0x1

    iput v0, p0, Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView;->mActivePointerId:I

    .line 184
    iput v1, p0, Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView;->mLastMotionY:F

    .line 185
    iput v1, p0, Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView;->mMaxScale:F

    .line 186
    iput v1, p0, Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView;->mLastScale:F

    .line 187
    return-void
.end method


# virtual methods
.method public getHeaderView()Landroid/widget/ImageView;
    .registers 2

    .prologue
    .line 98
    iget-object v0, p0, Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView;->mHeaderImage:Landroid/widget/ImageView;

    return-object v0
.end method

.method public getPlayBtn()Landroid/widget/ImageButton;
    .registers 2

    .prologue
    .line 102
    iget-object v0, p0, Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView;->mPlayBtn:Landroid/widget/ImageButton;

    return-object v0
.end method

.method public hideHeaderImage()V
    .registers 2

    .prologue
    const/4 v0, 0x0

    .line 155
    iput-boolean v0, p0, Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView;->mShowHeaderImage:Z

    .line 156
    iput-boolean v0, p0, Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView;->mZoomable:Z

    .line 157
    iput-boolean v0, p0, Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView;->mScrollable:Z

    .line 159
    iget-object v0, p0, Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView;->mHeaderContainer:Landroid/widget/FrameLayout;

    invoke-virtual {p0, v0}, Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView;->removeHeaderView(Landroid/view/View;)Z

    .line 160
    return-void
.end method

.method public isScrollable()Z
    .registers 2

    .prologue
    .line 148
    iget-boolean v0, p0, Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView;->mScrollable:Z

    return v0
.end method

.method public isZoomable()Z
    .registers 2

    .prologue
    .line 137
    iget-boolean v0, p0, Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView;->mZoomable:Z

    return v0
.end method

.method public onInterceptTouchEvent(Landroid/view/MotionEvent;)Z
    .registers 5
    .param p1, "ev"    # Landroid/view/MotionEvent;

    .prologue
    .line 191
    iget-boolean v1, p0, Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView;->mZoomable:Z

    if-nez v1, :cond_9

    .line 192
    invoke-super {p0, p1}, Landroid/widget/ExpandableListView;->onInterceptTouchEvent(Landroid/view/MotionEvent;)Z

    move-result v1

    .line 214
    :goto_8
    return v1

    .line 195
    :cond_9
    invoke-virtual {p1}, Landroid/view/MotionEvent;->getAction()I

    move-result v1

    and-int/lit16 v1, v1, 0xff

    packed-switch v1, :pswitch_data_3c

    .line 214
    :goto_12
    :pswitch_12
    invoke-super {p0, p1}, Landroid/widget/ExpandableListView;->onInterceptTouchEvent(Landroid/view/MotionEvent;)Z

    move-result v1

    goto :goto_8

    .line 197
    :pswitch_17
    const/4 v1, 0x0

    invoke-virtual {p1, v1}, Landroid/view/MotionEvent;->getPointerId(I)I

    move-result v1

    iput v1, p0, Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView;->mActivePointerId:I

    .line 198
    iget v1, p0, Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView;->mScreenHeight:I

    int-to-float v1, v1

    iget v2, p0, Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView;->mHeaderHeight:I

    int-to-float v2, v2

    div-float/2addr v1, v2

    iput v1, p0, Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView;->mMaxScale:F

    goto :goto_12

    .line 203
    :pswitch_28
    invoke-direct {p0}, Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView;->reset()V

    goto :goto_12

    .line 206
    :pswitch_2c
    invoke-virtual {p1}, Landroid/view/MotionEvent;->getActionIndex()I

    move-result v0

    .line 207
    .local v0, "index":I
    invoke-virtual {p1, v0}, Landroid/view/MotionEvent;->getPointerId(I)I

    move-result v1

    iput v1, p0, Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView;->mActivePointerId:I

    goto :goto_12

    .line 211
    .end local v0    # "index":I
    :pswitch_37
    invoke-direct {p0, p1}, Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView;->onSecondaryPointerUp(Landroid/view/MotionEvent;)V

    goto :goto_12

    .line 195
    nop

    :pswitch_data_3c
    .packed-switch 0x0
        :pswitch_17
        :pswitch_28
        :pswitch_12
        :pswitch_28
        :pswitch_12
        :pswitch_2c
        :pswitch_37
    .end packed-switch
.end method

.method protected onLayout(ZIIII)V
    .registers 7
    .param p1, "changed"    # Z
    .param p2, "l"    # I
    .param p3, "t"    # I
    .param p4, "r"    # I
    .param p5, "b"    # I

    .prologue
    .line 170
    invoke-super/range {p0 .. p5}, Landroid/widget/ExpandableListView;->onLayout(ZIIII)V

    .line 171
    iget v0, p0, Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView;->mHeaderHeight:I

    if-nez v0, :cond_f

    .line 172
    iget-object v0, p0, Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView;->mHeaderContainer:Landroid/widget/FrameLayout;

    invoke-virtual {v0}, Landroid/widget/FrameLayout;->getHeight()I

    move-result v0

    iput v0, p0, Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView;->mHeaderHeight:I

    .line 174
    :cond_f
    return-void
.end method

.method public onScroll(Landroid/widget/AbsListView;III)V
    .registers 12
    .param p1, "view"    # Landroid/widget/AbsListView;
    .param p2, "firstVisibleItem"    # I
    .param p3, "visibleItemCount"    # I
    .param p4, "totalItemCount"    # I

    .prologue
    const/4 v6, 0x0

    .line 380
    iget-boolean v2, p0, Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView;->mScrollable:Z

    if-eqz v2, :cond_37

    .line 381
    iget v2, p0, Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView;->mHeaderHeight:I

    iget-object v3, p0, Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView;->mHeaderContainer:Landroid/widget/FrameLayout;

    invoke-virtual {v3}, Landroid/widget/FrameLayout;->getBottom()I

    move-result v3

    sub-int/2addr v2, v3

    int-to-float v1, v2

    .line 382
    .local v1, "scrollY":F
    const/4 v2, 0x0

    cmpl-float v2, v1, v2

    if-lez v2, :cond_41

    iget v2, p0, Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView;->mHeaderHeight:I

    int-to-float v2, v2

    cmpg-float v2, v1, v2

    if-gez v2, :cond_41

    .line 383
    float-to-double v2, v1

    const-wide v4, 0x3fe4cccccccccccdL

    mul-double/2addr v2, v4

    double-to-int v0, v2

    .line 384
    .local v0, "s":I
    iget-object v2, p0, Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView;->mHeaderImage:Landroid/widget/ImageView;

    neg-int v3, v0

    invoke-virtual {v2, v6, v3}, Landroid/widget/ImageView;->scrollTo(II)V

    .line 385
    iget-object v2, p0, Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView;->mPlayBtn:Landroid/widget/ImageButton;

    invoke-virtual {v2}, Landroid/widget/ImageButton;->getVisibility()I

    move-result v2

    if-nez v2, :cond_37

    .line 386
    iget-object v2, p0, Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView;->mPlayBtn:Landroid/widget/ImageButton;

    neg-int v3, v0

    invoke-virtual {v2, v6, v3}, Landroid/widget/ImageButton;->scrollTo(II)V

    .line 396
    .end local v0    # "s":I
    .end local v1    # "scrollY":F
    :cond_37
    :goto_37
    iget-object v2, p0, Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView;->mOnScrollListener:Landroid/widget/AbsListView$OnScrollListener;

    if-eqz v2, :cond_40

    .line 397
    iget-object v2, p0, Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView;->mOnScrollListener:Landroid/widget/AbsListView$OnScrollListener;

    invoke-interface {v2, p1, p2, p3, p4}, Landroid/widget/AbsListView$OnScrollListener;->onScroll(Landroid/widget/AbsListView;III)V

    .line 400
    :cond_40
    return-void

    .line 388
    .restart local v1    # "scrollY":F
    :cond_41
    iget-object v2, p0, Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView;->mHeaderImage:Landroid/widget/ImageView;

    invoke-virtual {v2}, Landroid/widget/ImageView;->getScrollY()I

    move-result v2

    if-eqz v2, :cond_37

    .line 389
    iget-object v2, p0, Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView;->mHeaderImage:Landroid/widget/ImageView;

    invoke-virtual {v2, v6, v6}, Landroid/widget/ImageView;->scrollTo(II)V

    .line 390
    iget-object v2, p0, Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView;->mPlayBtn:Landroid/widget/ImageButton;

    invoke-virtual {v2}, Landroid/widget/ImageButton;->getVisibility()I

    move-result v2

    if-nez v2, :cond_37

    .line 391
    iget-object v2, p0, Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView;->mPlayBtn:Landroid/widget/ImageButton;

    invoke-virtual {v2, v6, v6}, Landroid/widget/ImageButton;->scrollTo(II)V

    goto :goto_37
.end method

.method public onScrollStateChanged(Landroid/widget/AbsListView;I)V
    .registers 4
    .param p1, "view"    # Landroid/widget/AbsListView;
    .param p2, "scrollState"    # I

    .prologue
    .line 372
    iget-object v0, p0, Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView;->mOnScrollListener:Landroid/widget/AbsListView$OnScrollListener;

    if-eqz v0, :cond_9

    .line 373
    iget-object v0, p0, Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView;->mOnScrollListener:Landroid/widget/AbsListView$OnScrollListener;

    invoke-interface {v0, p1, p2}, Landroid/widget/AbsListView$OnScrollListener;->onScrollStateChanged(Landroid/widget/AbsListView;I)V

    .line 375
    :cond_9
    return-void
.end method

.method public onTouchEvent(Landroid/view/MotionEvent;)Z
    .registers 12
    .param p1, "ev"    # Landroid/view/MotionEvent;

    .prologue
    .line 219
    iget-boolean v5, p0, Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView;->mZoomable:Z

    if-nez v5, :cond_9

    .line 220
    invoke-super {p0, p1}, Landroid/widget/ExpandableListView;->onTouchEvent(Landroid/view/MotionEvent;)Z

    move-result v5

    .line 302
    :goto_8
    return v5

    .line 223
    :cond_9
    invoke-virtual {p1}, Landroid/view/MotionEvent;->getAction()I

    move-result v5

    and-int/lit16 v5, v5, 0xff

    packed-switch v5, :pswitch_data_12a

    .line 302
    :goto_12
    :pswitch_12
    invoke-super {p0, p1}, Landroid/widget/ExpandableListView;->onTouchEvent(Landroid/view/MotionEvent;)Z

    move-result v5

    goto :goto_8

    .line 225
    :pswitch_17
    iget-object v5, p0, Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView;->mScalingRunnable:Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView$ScalingRunnable;

    iget-boolean v5, v5, Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView$ScalingRunnable;->mIsFinished:Z

    if-nez v5, :cond_22

    .line 226
    iget-object v5, p0, Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView;->mScalingRunnable:Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView$ScalingRunnable;

    invoke-virtual {v5}, Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView$ScalingRunnable;->abortAnimation()V

    .line 228
    :cond_22
    invoke-virtual {p1}, Landroid/view/MotionEvent;->getY()F

    move-result v5

    iput v5, p0, Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView;->mLastMotionY:F

    .line 229
    const/4 v5, 0x0

    invoke-virtual {p1, v5}, Landroid/view/MotionEvent;->getPointerId(I)I

    move-result v5

    iput v5, p0, Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView;->mActivePointerId:I

    .line 231
    iget v5, p0, Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView;->mScreenHeight:I

    int-to-float v5, v5

    iget v6, p0, Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView;->mHeaderHeight:I

    int-to-float v6, v6

    div-float/2addr v5, v6

    iput v5, p0, Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView;->mMaxScale:F

    .line 232
    iget-object v5, p0, Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView;->mHeaderContainer:Landroid/widget/FrameLayout;

    invoke-virtual {v5}, Landroid/widget/FrameLayout;->getBottom()I

    move-result v5

    int-to-float v5, v5

    iget v6, p0, Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView;->mHeaderHeight:I

    int-to-float v6, v6

    div-float/2addr v5, v6

    iput v5, p0, Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView;->mLastScale:F

    goto :goto_12

    .line 236
    :pswitch_46
    iget v5, p0, Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView;->mActivePointerId:I

    .line 237
    invoke-virtual {p1, v5}, Landroid/view/MotionEvent;->findPointerIndex(I)I

    move-result v0

    .line 238
    .local v0, "activePointerIndex":I
    const/4 v5, -0x1

    if-ne v0, v5, :cond_70

    .line 239
    const-string v5, "PullToZoomListView"

    new-instance v6, Ljava/lang/StringBuilder;

    invoke-direct {v6}, Ljava/lang/StringBuilder;-><init>()V

    const-string v7, "Invalid pointerId="

    invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v6

    iget v7, p0, Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView;->mActivePointerId:I

    invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v6

    const-string v7, " in onTouchEvent"

    invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v6

    invoke-virtual {v6}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v6

    invoke-static {v5, v6}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I

    goto :goto_12

    .line 244
    :cond_70
    iget v5, p0, Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView;->mLastMotionY:F

    const/high16 v6, -0x40800000

    cmpl-float v5, v5, v6

    if-nez v5, :cond_7e

    .line 245
    invoke-virtual {p1, v0}, Landroid/view/MotionEvent;->getY(I)F

    move-result v5

    iput v5, p0, Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView;->mLastMotionY:F

    .line 248
    :cond_7e
    iget-object v5, p0, Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView;->mHeaderContainer:Landroid/widget/FrameLayout;

    invoke-virtual {v5}, Landroid/widget/FrameLayout;->getBottom()I

    move-result v5

    iget v6, p0, Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView;->mHeaderHeight:I

    if-lt v5, v6, :cond_f7

    .line 250
    iget-object v5, p0, Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView;->mHeaderContainer:Landroid/widget/FrameLayout;

    invoke-virtual {v5}, Landroid/widget/FrameLayout;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;

    move-result-object v3

    .line 252
    .local v3, "params":Landroid/view/ViewGroup$LayoutParams;
    invoke-virtual {p1, v0}, Landroid/view/MotionEvent;->getY(I)F

    move-result v5

    iget v6, p0, Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView;->mLastMotionY:F

    sub-float v1, v5, v6

    .line 253
    .local v1, "dy":F
    iget-object v5, p0, Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView;->mHeaderContainer:Landroid/widget/FrameLayout;

    invoke-virtual {v5}, Landroid/widget/FrameLayout;->getBottom()I

    move-result v5

    int-to-float v5, v5

    add-float/2addr v5, v1

    iget v6, p0, Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView;->mHeaderHeight:I

    int-to-float v6, v6

    div-float v4, v5, v6

    .line 254
    .local v4, "scale":F
    iget v5, p0, Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView;->mLastScale:F

    sub-float v5, v4, v5

    const/high16 v6, 0x40000000

    div-float/2addr v5, v6

    iget v6, p0, Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView;->mLastScale:F

    add-float v4, v5, v6

    .line 256
    iget v5, p0, Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView;->mLastScale:F

    float-to-double v6, v5

    const-wide/high16 v8, 0x3ff0000000000000L

    cmpg-double v5, v6, v8

    if-gtz v5, :cond_cc

    iget v5, p0, Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView;->mLastScale:F

    cmpg-float v5, v4, v5

    if-gez v5, :cond_cc

    .line 257
    iget v5, p0, Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView;->mHeaderHeight:I

    iput v5, v3, Landroid/view/ViewGroup$LayoutParams;->height:I

    .line 258
    iget-object v5, p0, Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView;->mHeaderContainer:Landroid/widget/FrameLayout;

    invoke-virtual {v5, v3}, Landroid/widget/FrameLayout;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    .line 259
    invoke-super {p0, p1}, Landroid/widget/ExpandableListView;->onTouchEvent(Landroid/view/MotionEvent;)Z

    move-result v5

    goto/16 :goto_8

    .line 262
    :cond_cc
    const/high16 v5, 0x3f800000

    invoke-static {v4, v5}, Ljava/lang/Math;->max(FF)F

    move-result v4

    .line 263
    iget v5, p0, Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView;->mMaxScale:F

    invoke-static {v4, v5}, Ljava/lang/Math;->min(FF)F

    move-result v4

    .line 265
    iput v4, p0, Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView;->mLastScale:F

    .line 267
    iget v5, p0, Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView;->mHeaderHeight:I

    int-to-float v5, v5

    iget v6, p0, Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView;->mLastScale:F

    mul-float/2addr v5, v6

    float-to-int v5, v5

    iput v5, v3, Landroid/view/ViewGroup$LayoutParams;->height:I

    .line 269
    iget v5, v3, Landroid/view/ViewGroup$LayoutParams;->height:I

    iget v6, p0, Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView;->mScreenHeight:I

    if-ge v5, v6, :cond_ee

    .line 270
    iget-object v5, p0, Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView;->mHeaderContainer:Landroid/widget/FrameLayout;

    invoke-virtual {v5, v3}, Landroid/widget/FrameLayout;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    .line 272
    :cond_ee
    invoke-virtual {p1, v0}, Landroid/view/MotionEvent;->getY(I)F

    move-result v5

    iput v5, p0, Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView;->mLastMotionY:F

    .line 274
    const/4 v5, 0x1

    goto/16 :goto_8

    .line 277
    .end local v1    # "dy":F
    .end local v3    # "params":Landroid/view/ViewGroup$LayoutParams;
    .end local v4    # "scale":F
    :cond_f7
    invoke-virtual {p1, v0}, Landroid/view/MotionEvent;->getY(I)F

    move-result v5

    iput v5, p0, Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView;->mLastMotionY:F

    goto/16 :goto_12

    .line 283
    .end local v0    # "activePointerIndex":I
    :pswitch_ff
    invoke-direct {p0}, Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView;->reset()V

    .line 284
    invoke-direct {p0}, Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView;->endScaling()V

    goto/16 :goto_12

    .line 288
    :pswitch_107
    invoke-virtual {p1}, Landroid/view/MotionEvent;->getActionIndex()I

    move-result v2

    .line 289
    .local v2, "index":I
    invoke-virtual {p1, v2}, Landroid/view/MotionEvent;->getY(I)F

    move-result v5

    iput v5, p0, Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView;->mLastMotionY:F

    .line 290
    invoke-virtual {p1, v2}, Landroid/view/MotionEvent;->getPointerId(I)I

    move-result v5

    iput v5, p0, Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView;->mActivePointerId:I

    goto/16 :goto_12

    .line 294
    .end local v2    # "index":I
    :pswitch_119
    invoke-direct {p0, p1}, Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView;->onSecondaryPointerUp(Landroid/view/MotionEvent;)V

    .line 295
    iget v5, p0, Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView;->mActivePointerId:I

    invoke-virtual {p1, v5}, Landroid/view/MotionEvent;->findPointerIndex(I)I

    move-result v5

    invoke-virtual {p1, v5}, Landroid/view/MotionEvent;->getY(I)F

    move-result v5

    iput v5, p0, Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView;->mLastMotionY:F

    goto/16 :goto_12

    .line 223
    :pswitch_data_12a
    .packed-switch 0x0
        :pswitch_17
        :pswitch_ff
        :pswitch_46
        :pswitch_ff
        :pswitch_12
        :pswitch_107
        :pswitch_119
    .end packed-switch
.end method

.method public setHeaderViewSize(II)V
    .registers 5
    .param p1, "width"    # I
    .param p2, "height"    # I

    .prologue
    .line 114
    iget-boolean v1, p0, Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView;->mShowHeaderImage:Z

    if-nez v1, :cond_5

    .line 127
    :goto_4
    return-void

    .line 118
    :cond_5
    iget-object v1, p0, Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView;->mHeaderContainer:Landroid/widget/FrameLayout;

    invoke-virtual {v1}, Landroid/widget/FrameLayout;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;

    move-result-object v0

    .line 119
    .local v0, "params":Landroid/view/ViewGroup$LayoutParams;
    if-nez v0, :cond_12

    .line 120
    new-instance v0, Landroid/widget/AbsListView$LayoutParams;

    .end local v0    # "params":Landroid/view/ViewGroup$LayoutParams;
    invoke-direct {v0, p1, p2}, Landroid/widget/AbsListView$LayoutParams;-><init>(II)V

    .line 122
    .restart local v0    # "params":Landroid/view/ViewGroup$LayoutParams;
    :cond_12
    iput p1, v0, Landroid/view/ViewGroup$LayoutParams;->width:I

    .line 123
    iput p2, v0, Landroid/view/ViewGroup$LayoutParams;->height:I

    .line 124
    iget-object v1, p0, Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView;->mHeaderContainer:Landroid/widget/FrameLayout;

    invoke-virtual {v1, v0}, Landroid/widget/FrameLayout;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    .line 126
    iput p2, p0, Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView;->mHeaderHeight:I

    goto :goto_4
.end method

.method public setOnScrollListener(Landroid/widget/AbsListView$OnScrollListener;)V
    .registers 2
    .param p1, "l"    # Landroid/widget/AbsListView$OnScrollListener;

    .prologue
    .line 404
    iput-object p1, p0, Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView;->mOnScrollListener:Landroid/widget/AbsListView$OnScrollListener;

    .line 405
    return-void
.end method

.method public setScrollable(Z)V
    .registers 3
    .param p1, "scrollable"    # Z

    .prologue
    .line 141
    iget-boolean v0, p0, Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView;->mShowHeaderImage:Z

    if-nez v0, :cond_5

    .line 145
    :goto_4
    return-void

    .line 144
    :cond_5
    iput-boolean p1, p0, Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView;->mScrollable:Z

    goto :goto_4
.end method

.method public setShadow(I)V
    .registers 3
    .param p1, "resId"    # I

    .prologue
    .line 106
    iget-boolean v0, p0, Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView;->mShowHeaderImage:Z

    if-nez v0, :cond_5

    .line 111
    :goto_4
    return-void

    .line 110
    :cond_5
    iget-object v0, p0, Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView;->mShadow:Landroid/widget/ImageView;

    invoke-virtual {v0, p1}, Landroid/widget/ImageView;->setBackgroundResource(I)V

    goto :goto_4
.end method

.method public setZoomable(Z)V
    .registers 3
    .param p1, "zoomable"    # Z

    .prologue
    .line 130
    iget-boolean v0, p0, Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView;->mShowHeaderImage:Z

    if-nez v0, :cond_5

    .line 134
    :goto_4
    return-void

    .line 133
    :cond_5
    iput-boolean p1, p0, Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView;->mZoomable:Z

    goto :goto_4
.end method
